<?php
/* @var $this SettingController */
/* @var $model Setting */

$this->breadcrumbs=array(
	'综合控制台'=>array($this->pre_module_url.'/index/index'),
	'网站配置'=>array($this->pre_module_url.'/setting/webconfig'),
	'网站基本设置',
);
?>
<div class="manage_box shop_box site_box">
        	<div class="shop_set">
                <form method="post" action="" id="">
                	<h3 class="fs_14">网站基本信息</h3>
                    <ul class="form_list form_list2">
                        <li class="c_f"><span class="tit">网站名称：</span>
                            <div class="cont f_l"><input class="t_ipt w_250" type="text" name="Setting[48][zkl_valued]" maxlength="200" value="<?php echo F::setting('sitename')?>"/><span class="c_999">网站名称，将显示在导航条以及网站介绍中</span></div>
                        </li>
                        <!--<li class="c_f"><span class="tit">网站标题：</span>
                            <div class="cont f_l"><input class="t_ipt w_250" type="text" name="" maxlength="100" /><span class="c_999">该标题将显示在网页的标题中</span></div>
                        </li>
                        <li class="c_f"><span class="tit">网站副标题：</span>
                            <div class="cont f_l"><input class="t_ipt w_250" type="text" name="" maxlength="100" /><span class="c_999">该标语将显示在网站的宣传上</span></div>
                        </li>-->
                        <li class="c_f"><span class="tit">Logo地址：</span>
                            <div class="cont f_l"><input class="t_ipt w_250" type="text" name="Setting[49][zkl_valued]" maxlength="100" value="<?php echo F::setting('sitelogo')?>"/><span class="c_999">Logo的地址，如果没有HTTP://，则为本地</span></div>
                        </li>
                        <li class="c_f"><span class="tit">网站 URL：</span>
                            <div class="cont f_l"><input class="t_ipt w_250" type="text" name="Setting[1][zkl_valued]" maxlength="100" value="<?php echo F::setting('siteurl') ?>"/><span class="c_999">网站URL，将作为链接显示在页面底部, 必须以"/"结尾</span></div>
                        </li>
                        <li class="c_f"><span class="tit">热线电话：</span>
                            <div class="cont f_l"><input class="t_ipt w_250" type="text" name="Setting[50][zkl_valued]" maxlength="100" value="<?php echo F::setting('hottel') ?>"/><span class="c_999">网站热线电话，将作为网站主要客服电话</span></div>
                        </li>
                        <li class="c_f"><span class="tit">客服邮箱：</span>
                            <div class="cont f_l"><input class="t_ipt w_250" type="text" name="Setting[56][zkl_valued]" maxlength="100" value="<?php echo F::setting('site_email') ?>"/><span class="c_999">客服邮箱，将作为网站主要客服邮箱</span></div>
                        </li>
                        <li class="c_f"><span class="tit">备案信息代码：</span>
                            <div class="cont f_l"><input class="t_ipt w_250" type="text" name="Setting[52][zkl_valued]" maxlength="100" value="<?php echo F::setting('siteicp') ?>"/></div>
                        </li>
                    </ul>
                    <!--<h3 class="fs_14">二级域名设置</h3>
                    <ul class="form_list form_list2">
                        <li class="c_f"><span class="tit">顶级域名支持：</span>
                            <div class="cont f_l"><label class="mr20"><input class="radio" type="radio" name="topdomain" checked="checked" />是</label><label><input class="radio" type="radio" name="topdomain" />否</label></div>
                        </li>
                        <li class="c_f"><span class="tit">二级域名支持：</span>
                            <div class="cont f_l"><label class="mr20"><input class="radio" type="radio" name="subdomain" checked="checked" />是</label><label class="mr10"><input class="radio" type="radio" name="subdomain" />否</label><input class="t_ipt w_120" type="text" name="" value="" maxlength="50" /><span class="c_999">如果开启，请填写二级域名后缀，例如.yourdomain.com（前面必须有.）</span></div>
                        </li>
                        <li class="c_f"><span class="tit">URL静态化：</span>
                            <div class="cont f_l"><label class="mr20"><input class="radio" type="radio" name="url" checked="checked" />是</label><label><input class="radio" type="radio" name="url" />否</label></div>
                        </li>
                        <li class="c_f"><span class="tit">Rewrite兼容性：</span>
                            <div class="cont f_l"><label class="mr20"><input class="radio" type="radio" name="rewrite" />是</label><label><input class="radio" type="radio" name="rewrite"  checked="checked" />否</label></div>
                        </li>
                    </ul>-->
                    <h3 class="fs_14">积分与扣点设置</h3>
                    <ul class="form_list form_list2">
                        <li class="c_f"><span class="tit">积分系统：</span>
                            <div class="cont f_l"><label class="mr20"><input class="radio" type="radio" name="Setting[58][zkl_valued]" value="1" <?php if(F::setting('pointsys')==1){echo 'checked ="checked"';}?> onclick="$('#Points').show()"/>消费积分系统</label><label><input class="radio" type="radio" name="Setting[58][zkl_valued]" value="2" <?php if(F::setting('pointsys')==2) echo 'checked ="checked"';?> onclick="$('#Points').hide()"/>产品积分系统</label></div>
                        </li>
                        <?php if(F::setting('pointsys')==1){?>
                        <li class="c_f" id ="Points"><span class="tit">积分比例：</span>
                            <div class="cont f_l"><input class="t_ipt w_170" type="text" name="Setting[43][zkl_valued]" maxlength="10" value="<?php echo F::setting('points')?>"/><span class="c_999">积分比例：默认1：100，即消费100即可得1积分</span></div>
                        </li>
                        <?php }?>
                        <!--<li class="c_f"><span class="tit">提现扣点数：</span>
                            <div class="cont f_l"><input class="t_ipt w_170" type="text" name="" maxlength="10" value="1"/><span class="c_999">提现扣点数：默认1%</span></div>
                        </li>-->
                    </ul>
                    <h3 class="fs_14">图片附件设置</h3>
                    <ul class="form_list form_list2">
                    	<li class="c_f"><span class="tit">是否保留原图：</span>
                            <div class="cont f_l"><label class="mr20"><input class="radio" type="radio" name="pic" />是</label><label><input class="radio" type="radio" name="pic"  checked="checked" />否</label></div>
                        </li>
                        <li class="c_f"><span class="tit">文件大小限制：</span>
                            <div class="cont f_l"><input class="t_ipt w_170" type="text" name="Setting[2][zkl_valued]" maxlength="10" value="<?php echo F::setting('filesite') ?>"/><span class="c_999">限制上传文件的大小以K为单位</span></div>
                        </li>
                        <li class="c_f"><span class="tit">商家相册容量：</span>
                            <div class="cont f_l"><input class="t_ipt w_170" type="text" name="Setting[39][zkl_valued]" maxlength="10" value="<?php echo F::setting('Album_max_size') ?>"/><span class="c_999">商家相册容量,单位M</span></div>
                        </li>                        
                    </ul>
                    <div class="save_btn t_c">
                    	<input class="mem_btn mem_btn20 mr5" type="submit" name="" value="保存信息" />
                    	<?php echo CHtml::link(Yii::t('glo','清空缓存'),array('destoryCache'),array('class'=>'mem_btn mem_btn20'))?>
                    </div>	
                </form>    	            
        	</div>
</div>